|
|
|
| |
|
|
|
|
three-character-prefix naming convention is Microsoft's suggested nomenclature for Visual Basic 5 and is used throughout this book. |
|
|
|
|
|
|
|
|
Use the search phrase "Object Naming Conventions" in the Visual Basic 5 Books Online to find a complete listing of the suggested object prefixes. |
|
|
|
|
|
|
|
|
|
|
Now is a good time to save your work up to this point. To save this project, select File | Save Project from the main menu. When prompted for a filename for the form, enter DATCNTRL.FRM. You will then be prompted for a filename for the project. Enter DATCNTRL.VBP. |
|
|
|
|
|
|
|
|
It's always a good idea to save your work often. |
|
|
|
|
| |
|
|
|
|
This, and all other projects that you complete from this book, can be found on the CD included with this book. |
|
|
|
|
|
|
| |
|
|
|
|
One way to make sure you keep an up-to-date copy of your project saved on disk is to set the "When a program starts:" environment variable to Save Changes. You can do this by selecting Tools | Options . . . and choosing the Environment tab. Then select either the Save Changes option or the Prompt to Save Changes option. |
|
|
|
|
|
|
|
|
|
|
Adding the Bound Input Controls |
|
|
|
|
|
|
|
|
Now that you've successfully linked the form to a database with the data control and selected a data table to access, you are ready to add input controls to the form. Visual Basic 5 supplies you with input controls that can be directly bound (connected) to the data table you want to access. All you need to do is place several input controls on the form and assign them to an existing data control. |
|
|
|
|
|